package com.zwq.pojo.dto;

import lombok.Data;

import java.util.List;

@Data
public class MachineStatsDto {
    private List<DistributionItem> typeDistribution; // 类型分布
    private List<DistributionItem> statusDistribution; // 状态分布
    private List<UsageFrequencyItem> usageFrequency; // 使用频率
    private List<FailureRateItem> failureRate; // 故障率

    @Data
    public static class DistributionItem {
        private String name;
        private Integer value;
    }

    @Data
    public static class UsageFrequencyItem {
        private String date; // YYYY-MM-DD
        private Integer count;
    }

    @Data
    public static class FailureRateItem {
        private String name;
        private Integer value;
    }
}